import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui'
import './styles/index.scss'
import request from './utils/request'
import CKEditor from 'ckeditor4-vue'
import { checkAccess } from '@/utils/permission'
import Filters from './filters/index'

// 大屏引入echarts
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.prototype.$topTitle = '域外'

import echartsFontSize from './views/largeScreenDet/left/echartsFontSize'
Vue.prototype.$echartsFontSize = echartsFontSize
// 大屏引入公交bus
import VueBus from 'vue-bus'
Vue.use(VueBus)
Vue.config.productionTip = false
Vue.prototype.$http = request
Vue.prototype.$checkAccess = checkAccess

Vue.use(Element)
Vue.use(CKEditor)
Object.keys(Filters).forEach(key => Vue.filter(key, Filters[key]))

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
